package ylg.com.cn.youtube._data.source.local;

import android.content.Context;

import java.util.ArrayList;
import java.util.List;

import ylg.com.cn.youtube._data.HistoricalItem;
import ylg.com.cn.youtube._data.source.HistoricalItemData;

/**
 * Created by MyPC on 2017/1/11.
 */
public class HistoricalItemDataSource implements HistoricalItemData {

    public HistoricalItemDataSource(Context context) {

    }

    @Override
    public List<HistoricalItem> getLastItems() {
        int count = 20;
        List<HistoricalItem> smp = new ArrayList<>();

        for (int i = 0; i < count; i++) {
            smp.add(new HistoricalItem(i, "Historical "+i));
        }
        return smp;

    }

    @Override
    public void saveItemToDb(HistoricalItem item) {

    }
}
